Some handlers used in the script are not declared. AppleScript might not be able to locate all of the handlers at run time.